function foo(...arg: (string | number)[]) {
  console.log(arg)
}

foo(1, 2, 3)
export {}